<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <template id="t1">
      <div>
        <!-- <button v-on:clcik="log()">click</button> -->
        <!-- <a href="a.html" v-on:click.prevent="log()">hello</a> -->
        <a href="a.html" @click.prevent="log()">hello</a>
        <!-- <input type="text" v-bind:name="name"  /> -->
        <input type="text" :name="name" />
      </div>
    </template>
    <script src="./vue.js"></script>
    <script>
      const vm = new Vue({
        el: "#app",
        template: "#t1",
        data: {
          name: "username",
        },
        methods: {
          log() {
            console.log("hello");
          },
        },
      });
    </script>
  </body>
</html>
